using System;
using DevExpress.Xpo;

namespace BusinessObjects
{

    public class CongTy : XPObject
    {
        public CongTy()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public CongTy(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields
        private string _tenCongTy;
        [NonPersistent]
        private LinhVuc _linhVuc;

       
        public LinhVuc LinhVuc
        {
            get { return _linhVuc; }
            set { SetPropertyValue("LinhVuc", ref _linhVuc, value); }
        }

        [DbType("nvarchar(200)")]
        public string TenCongTy
        {
            get { return _tenCongTy; }
            set {SetPropertyValue("TenCongTy", ref _tenCongTy, value); }
        }
        

    }

}